﻿using System;

namespace IceCS.Puke.Core.PukeException
{
    /// <summary>
    /// 获取卡牌超出范围异常
    /// </summary>
    public class CardOutOfRangeException : ApplicationException
    {
        private static readonly string message = "获取卡牌超出范围异常，值只能在1到52之间(包括1和52)";
        /// <summary>
        /// 输入的异常索引值
        /// </summary>
        public int Index { get; }

        /// <summary>
        /// 获取卡牌超出范围异常
        /// </summary>
        /// <param name="deck"></param>
        public CardOutOfRangeException(int index) : base(message)
        {
            Index = index;
        }
    }
}
